package com.hxg.bl.dao.jpa;

import com.hxg.bl.bean.StoreBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import javax.transaction.Transactional;
import java.util.List;

public interface StoreBeanJpa extends JpaRepository<StoreBean, Long> {

    @Transactional
    @Modifying
    @Query("delete from StoreBean where id in (?1)")
    void deleteAllByIdIn(List<Long> idList);
}
